package com.xszx.service;

import com.xszx.dao.MoveWarehouseDao;
import com.xszx.entity.MoveWarehouse;
import com.xszx.entity.dto.MoveWarehouse.MoveWarehouseQueryRequest;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MoveWarehouseService {
    @Resource
    private MoveWarehouseDao moveWarehouseDao;


    public List<MoveWarehouse> getMoveWareList(MoveWarehouseQueryRequest moveWarehouseQueryRequest) {
        String warehouseCode = moveWarehouseQueryRequest.getWarehouseCode();
        String regionCode = moveWarehouseQueryRequest.getRegionCode();
        String gbatch = moveWarehouseQueryRequest.getGbatch();
        List<MoveWarehouse> moveWareList = moveWarehouseDao.getMoveWareList(warehouseCode,  regionCode, gbatch);
        return moveWareList;
    }
}
